<?php

if(!isset($_GET['url'])){
    $_GET['url']='/Project_bbs/front/index.php';
}
setcookie('member[name]',$_POST['name'],time()-3600,'/Project_bbs/front','localhost');
setcookie('member[pw]',sha1(md5($_POST['pw'])),time()-3600,'/Project_bbs/front','localhost');

header('location: '.$_GET['url']);


?>